<p>
	<a href="<?php echo $this->baseUrl?>/admin/users/adduser">Add user</a>
	
	| 
	
	<a href="<?php echo $this->baseUrl?>/admin/login/logout">Logout</a>
</p>

<h3>Users Listing</h3>

<?php ///var_dump($this->users)?>

<div class="body-con">
<table>
<tr>
	<th>Username</th>
	<th>Real name</th>
	<th>Action</th>
</tr>


<?php 
foreach ($this->users as $user){
?>

<tr>
	<td><?php echo $user['username']?> </td>
	<td><?php echo $user['realname']?> </td>
	<td>
		<a href="<?php echo $this->edit_link . $user['id']?>">Edit</a>
		|
		<a href="<?php echo $this->delete_link .'id/' . $user['id']?>">Delete</a>
	</td>
</tr>

<?php 
}
?>

</table>
</div>